package com.ouc.pampas;

public final class LoginContextHolder
{
  private static final ThreadLocal<LoginContext> CONTEXT = new ThreadLocal();
  
  public static void put(LoginContext context)
  {
    CONTEXT.set(context);
  }
  
  public static LoginContext get()
  {
    return (LoginContext)CONTEXT.get();
  }
  
  public static void clear()
  {
    CONTEXT.remove();
  }
}
